package com.laicunba.service.impl;

import org.springframework.stereotype.Service;

import com.laicunba.pojo.BaseDO;
import com.laicunba.pojo.RemainProfitDO;
import com.laicunba.service.RemainProfitService;

@Service
public class RemainProfitServiceImpl extends BaseServiceImpl implements RemainProfitService {

	@Override
	public boolean create(BaseDO entiry) {
		RemainProfitDO remainProfitDO = (RemainProfitDO) entiry;
		remainProfitDO.generatorKey();
		return updateDao.insert("REMAIN_PROFIT.insert", remainProfitDO) == 1;
	}
}
